package com.jyxd.web.service.dictionary;

import com.jyxd.web.dao.dictionary.NormalValueDictionaryDao;
import com.jyxd.web.data.dictionary.NormalValueDictionary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class NormalValueDictionaryService {

    @Autowired
    private NormalValueDictionaryDao normalValueDictionaryDao;

    public boolean insert(NormalValueDictionary normalValueDictionary){
        return normalValueDictionaryDao.insert(normalValueDictionary);
    }

    public boolean update(NormalValueDictionary normalValueDictionary){
        return normalValueDictionaryDao.update(normalValueDictionary);
    }

    public List<NormalValueDictionary> queryList(Map<String,Object> map){
        return normalValueDictionaryDao.queryList(map);
    }

    public int queryNum(Map<String,Object> map){return normalValueDictionaryDao.queryNum(map);}

}
